com.cete.dynamicpdf.merger
Class FormFlatteningOptions



Example: The following example shows how to flatten a PDF using FormFlatteningOptions.

	import com.cete.dynamicpdf.merger.FormFlatteningOptions;
	import com.cete.dynamicpdf.merger.MergeDocument;
	 
	public class MyClass {
		public static void main(String args[]){
		// Create a merge document containing the form fields
		MergeDocument document = new MergeDocument("[physicalpath]/ImportPDF.pdf");
	
		//Set FormFlattening property of the document
		document.setFormFlattening(FormFlatteningOptions.getDefault());
			  
		// Save the PDF
		document.draw("[PhysicalPath]/AllFormFields_Flattened.pdf");
		}
	}